#!/usr/bin/env python3
"""
ComfyUI Scripts - Python Package Setup
"""

from setuptools import setup, find_packages
from pathlib import Path

# 读取README文件
readme_path = Path(__file__).parent / "README.md"
long_description = ""
if readme_path.exists():
    with open(readme_path, "r", encoding="utf-8") as f:
        long_description = f.read()

# 读取requirements文件
requirements_path = Path(__file__).parent / "requirements.txt"
install_requires = []
if requirements_path.exists():
    with open(requirements_path, "r", encoding="utf-8") as f:
        install_requires = [line.strip() for line in f if line.strip() and not line.startswith("#")]

setup(
    name="comfyui-scripts",
    version="2.0.0",
    author="ComfyUI Scripts Team",
    author_email="",
    description="ComfyUI 依赖管理和工具脚本集合",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="",
    packages=find_packages(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
    ],
    python_requires=">=3.8",
    install_requires=install_requires,
    entry_points={
        'console_scripts': [
            'comfyui-depend=public.depend_manager:main',
            'comfyui-env=public.env_setup:main',
            'comfyui-run=public.run_depend:main',
        ],
        'gui_scripts': [
            'comfyui-gui=public.gui_app:main',
            'comfyui-tray=public.tray_app:main',
        ],
    },
    include_package_data=True,
    package_data={
        'comfyui_scripts': ['*.txt', '*.md', '*.bat', '*.sh'],
    },
) 